package com.ZengQi.event.service.impl;

import com.ZengQi.event.dao.PublisherDao;
import com.ZengQi.event.dao.impl.PublisherDaoImpl;
import com.ZengQi.event.entity.Publisher;
import com.ZengQi.event.service.PublisherService;

public class PublisherServiceImpl implements PublisherService {
    private final PublisherDao publisherDao=new PublisherDaoImpl();
    @Override
    public Publisher findPublisher(Publisher publisher) {
        return publisherDao.getPublisher(publisher);
    }

    @Override
    public boolean removePublisher(Publisher conditionPublisher) {
        return publisherDao.deletePublisher(conditionPublisher);
    }

    @Override
    public boolean savePublisher(Publisher publisher) {
        return publisherDao.insertPublisher(publisher);
    }
}
